/**
 * example路由配置
 * @return {Promise<*>|*}
 * @author leon
 * @createTime 2018-08-17 14:35:32
 */
const Main = () => import('@/views/main');
const IdolsList = () => import('@/views/idols/list');
const MyFollow = () => import('@/views/idols/myFollow');

export default [
    {
        path: '/idols',
        component: Main,
        name: 'idols',
        meta: {
            unfold: false,
            name: '关注',
            icon:'el-icon-view'
        },
        children: [
            {
                path: 'list',
                name: 'idolsList',
                component: IdolsList,
                meta: {
                    name: '所有偶像',
                    requireAuth: false
                }
            },
            {
                path: 'my-follow',
                name: 'myFollow',
                component: MyFollow,
                meta: {
                    name: '我的关注',
                    requireAuth: false
                }
            }
        ],

        redirect: {
            name: 'myFollow'
        }
    }
]
